<?php

$book=[
    array("bookname"=>"PHP","writer"=>"小明","price"=>"25.0"),
    array("bookname"=>"node","writer"=>"小肖","price"=>"20.0"),
    array("bookname"=>"vue","writer"=>"小李","price"=>"22.0"),
];

$a=0;
for($i=0;$i<count($book);$i++){
    if($book[$i]['bookname']==$_GET['bookvalue']){
        echo $_GET['bookvalue'].'在图书柜第'.($i+1).'层';
        $a=1;
    }
}

if($a==0){
    echo '没有这本书';
}

?>